﻿using SuperSocket.SocketBase.Command;
using SuperSocket.SocketBase.Protocol;
using TransferCommon;
namespace TransferServerLib.UpLoad.Command
{
    public class DoUpLoad : CommandBase<TransferSession, BinaryRequestInfo>
    {
        public override void ExecuteCommand(TransferSession session, BinaryRequestInfo requestInfo)
        {
            UpLoadInfo uploadInfo = SerializeHelp.Deserialize<UpLoadInfo>(requestInfo.Body);
            session.UpLoadEngine.OnUpLoad(uploadInfo);
        }
    }
}
